<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>页面头部</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link type="text/css" rel="stylesheet" href="css/style.css" />
	
	<script type="text/javascript" src="/HouseRent/scripts/jquery-1.9.1.min.js"></script>
    <script type="text/javascript">
	$(function(){
		$("#p_operator").hover(function(){
			$("#p_operator_sub").show();
		},function(){
			$("#p_operator_sub").hide();
		});
	});
	</script>
  </head>
  
  <body>
  <div id="header" class="wrap">
  	<div class="top" style="background-color: #E8E8E8">
  		<s:if test="#session.user!=null">
		<div class="login">
			<div id="p_operator" class="p_operator">
				<a href="filter/personalInfo.jsp">个人信息</a>
				<div id="p_operator_sub" class="p_operator_sub">
					<a href="">收藏房源</a>
					<a href="">发布出租</a>
					<a href="">管理出租</a>
				</div>
			</div>
			<div class="wel">您好，<s:property value="#session.user.userName"/>！[<a href="page/register.jsp">退出</a>]</div>
		</div>
	</s:if>
	<s:else>
		<div class="login">您好，欢迎来青鸟租房！[<a href="page/register.jsp">注册</a>][<a href="page/login.jsp">登录</a>]</div>	
	</s:else>
  	</div>
	<div id="logo"><img src="images/logo.gif" /></div>
</div>
<div id="navbar" class="wrap">
</div>
  </body>
</html>
